package cn.hk.vaccination.service.impl;

import cn.hk.vaccination.domain.VaccinesBasicsInfo;
import cn.hk.vaccination.mapper.VaccinesBasicsInfoMapper;
import cn.hk.vaccination.service.DeptVaccinesStockService;
import cn.hk.vaccination.service.VaccinesBasicsInfoService;
import cn.hk.vaccination.service.VaccinesDeptRegisterService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 疫苗基础信息维护表 服务实现类
 * </p>
 *
 * @author xu
 * @since 2023-03-10
 */
@Service
public class VaccinesBasicsInfoServiceImpl extends ServiceImpl<VaccinesBasicsInfoMapper, VaccinesBasicsInfo> implements VaccinesBasicsInfoService {

    @Autowired
    private VaccinesDeptRegisterService vaccinesDeptRegisterService;

    @Autowired
    private DeptVaccinesStockService deptVaccinesStockService;

    @Autowired
    private VaccinesBasicsInfoMapper vaccinesBasicsInfoMapper;

    @Override
    public VaccinesBasicsInfo getVaccinesListByDeptId(Long deptId) {
        List<Long> VaccinesIdsOne = vaccinesDeptRegisterService.getVaccinesIdsByDeptId(deptId);
        List<Long>   VaccinesIdsTwo = deptVaccinesStockService.getVaccinesIdsByDeptId(deptId);
        return null;
    }

    @Override
    public VaccinesBasicsInfo getVaccinesDetailById(Long vid) {

        return  vaccinesBasicsInfoMapper.selectOneByVid(vid);
    }
}
